package com.wn.mq.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class RoomOrderListener  {

    @RabbitHandler
    @RabbitListener(queues = "room_dead_queue")
    public void receiveMessage(Message message){
        System.out.println("收到房屋约看订单id:"+new String(message.getBody()));


    }
}
